home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / udev / rules.d / 85-pcmcia.rules < prev    next >
Text File  |  2007-10-23  |  950b  |  29 lines

  1. # PCMCIA devices:
  2. #
  3. ACTION!="add", GOTO="pcmciautils_end"
  4.  
  5. # Very few CIS firmware entries (which we use for matching)
  6. # are so broken that we need to read out random bytes of it
  7. # instead of the manufactor, card or product ID. Then the
  8. # matching is done in userspace.
  9. SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
  10.         RUN+="/lib/udev/pcmcia-check-broken-cis"
  11.  
  12. # However, the "weak" matching by func_id is only allowed _after_ modprobe
  13. # returns, so that "strong" matches have a higher priority.
  14. SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
  15.         RUN+="/bin/sh -c 'echo 1 > /sys/$devpath/allow_func_id_match'"
  16.  
  17. # PCMCIA sockets:
  18. #
  19. # modprobe the pcmcia bus module so that 16-bit PCMCIA devices work
  20. SUBSYSTEM=="pcmcia_socket", \
  21.         RUN+="/sbin/modprobe -Qb pcmcia"
  22.  
  23. # if this is a PCMCIA socket which needs a resource database,
  24. # pcmcia-socket-startup sets it up
  25. SUBSYSTEM=="pcmcia_socket", \
  26.         RUN+="/lib/udev/pcmcia-socket-startup"
  27.  
  28. LABEL="pcmciautils_end"
  29.